#include "component/TextureRenderer.h"
#include "event/Event_RenderComp_Created.h"
#include "rendering/TextureNode.h"
#include "GameObject.h"


using namespace Boon;

GameObject::RegisterCreationCB<TextureRenderer> r;


void Boon::TextureRenderer::OnCreate()
{
	Renderer::OnCreate();
}

void Boon::TextureRenderer::OnStart()
{
	Renderer::OnStart();
}

void Boon::TextureRenderer::OnEnable()
{
	Renderer::OnEnable();
}

void Boon::TextureRenderer::OnDisable()
{
	Renderer::OnDisable();
}

void Boon::TextureRenderer::OnDestroy()
{
	Renderer::OnDestroy();
}

void Boon::TextureRenderer::Update()
{
	Renderer::Update();
}

IMessengerEventStrong Boon::TextureRenderer::GetEventCreateSceneNode()
{
	// create new event that will be handled by a shared_ptr (safe deletion!)
	return IMessengerEventStrong( new Event_RenderComp_Created( *this,
																new Rendering::TextureNode() ) );
}

void Boon::TextureRenderer::LateUpdate()
{
	Renderer::LateUpdate();
}


